const Koa = require('koa');
const path = require('path');
// const Router = require('koa-router');
const static = require('koa-static');
const app = new Koa();
// const router = new Router();
const PORT = process.env.NODE_ENV || 3333;

app.use(static(path.join(__dirname, 'src')));

app.on('error', err => {
  console.error('server error', err)
});

app.listen(PORT, function () {
  console.log('Listen at http://localhost:' + PORT);
});
